package edu.tyut.ncp.dao;

import org.apache.ibatis.annotations.Param;
import edu.tyut.ncp.entity.Purchase;
import edu.tyut.ncp.entity.SellPurchase;
import org.springframework.stereotype.Component;

import java.util.List;
@Component

public interface PurchaseDao {

    int insertSelective(Purchase record);

    List<Purchase> selectBuys(String username);
    Purchase selectNewPurchaseId(String ownName);
    List<SellPurchase> selectByName(@Param("ownName") String ownName);
}
